package com.example.demo.niuke;

/**
 * @Description:
 * @Author: LLL
 * @Date: 2020-03-18 22:47
 **/

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main7 {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String s = br.readLine();
        for (int i = s.length() - 1; i >= 0; i--) {
            System.out.print(s.charAt(i));

        }

    }
}
